<template>
  <view class="linear-bg" :style="'margin-top:'+($xyfun.xysys().buttonBound.top)+'px;'">
    <view class="navBarTit">
      <view class="yz-iconfont yz-jiantou1" @tap="$xyfun.back()" v-if="showBack"></view>
      <text>{{title}}</text>
    </view>
  </view>
</template>
<script>
export default {
  name: "xyTitle",
  props: {
    title : {
      type: String,
      default: ""
    },
    showBack : {
      type: Boolean,
      default: true
    }
  },
  methods:{

  }
}
</script>
<style lang="scss">
.navBarTit{
  text-align: center;
}
</style>
